<?php
function googleAnalyticsGetImageUrl() {
//	global $GA_ACCOUNT, $GA_PIXEL;
	$GA_ACCOUNT = "MO-405149-8";
	$GA_PIXEL = "http://reafo.net/mixi_apps/hima_share/lib/ga.php";
	$url = "";
	$url .= $GA_PIXEL . "?";
	$url .= "utmac=" . $GA_ACCOUNT;
	$url .= "&utmn=" . rand(0, 0x7fffffff);
	$referer = $_SERVER["HTTP_REFERER"];
	$query = $_SERVER["QUERY_STRING"];
	$path = $_SERVER["REQUEST_URI"];
	if (empty($referer)) {
	  $referer = "-";
	}
	$url .= "&utmr=" . urlencode($referer);
	if (!empty($path)) {
	  $url .= "&utmp=" . urlencode($path);
	}
	$url .= "&guid=ON";
	return str_replace("&", "&amp;", $url);
}
